<head>
    <meta charset="UTF-8">
    <title>宜鲜生</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <!-- load css -->
    <link rel="stylesheet" type="text/css" href="css/bootstrap.min.css?v=v3.3.7" media="all">
    <link rel="stylesheet" type="text/css" href="css/font/iconfont.css?v=1.0.0" media="all">
    <link rel="stylesheet" type="text/css" href="css/layui.css?v=1.0.9" media="all">
    <link rel="stylesheet" type="text/css" href="css/jqadmin.css?v=1.3.4" media="all">

</head>
<body>
    <div class="container-fluid larry-wrapper">
        <div class="row">
            <div class="col-xs-12 col-sm-12 col-md-12">
                <!--头部搜索-->
                <section class="panel panel-padding">
                    <form class="layui-form" action="/education/admin/enterprise">
                        <input name="pageSize" value="15" type="hidden">
                        <input name="_query.propertyid" id="propertyid" type="hidden">
                        <input name="_query.areaid" id="areaid" type="hidden">
                        <input name="_query.streetid" id="streetid" type="hidden">
                        <div style="display: none">
                            <button lay-submit class="layui-btn" lay-filter="search" id="search">查找</button>
                        </div>

                        <!--       <div class="layui-form">
                                   <div class="layui-inline">
                                       <div class="layui-input-inline">
                                           <input class="layui-input" name="_query.keyword" placeholder="关键字">
                                       </div>
                                   </div>
                                   <div class="layui-inline">
                                       <button lay-submit class="layui-btn" lay-filter="search" id="search">查找</button>
                                   </div>
                               </div>-->
                    </form>
                </section>
                <!--列表-->
                <section class="panel panel-padding">
                    <div id="list" class="layui-form"></div>

                    <div class="text-right" id="page"></div>
                </section>
            </div>
        </div>
    </div>

    <script id="list-tpl" type="text/html"
            data-params='{"url":"/education/admin/enterprise?pageSize=15","dataName":"","pageid":"#page", "method":"post", "data":"", "async":false}'>
        <table id="example" class="layui-table lay-even" data-name="" data-tplid="list-tpl">
            <thead>
            <tr>
                <th width="20px">序号</th>
                <th>企业名称</th>
                <!--<th width="110">综合体名称</th>-->
                <th>地址</th>
            </tr>
            </thead>
            <tbody>
            {{# layui.each(d.list, function(index, item){ }}
            <tr>
                <td>{{ index + 1}}</td>
                <td>{{# if(item.name == null){ }} {{#  } else { }} {{ item.name }} {{#  } }}</td>
                <!--<td>{{# if(item.propertyname == null){ }} {{#  } else { }} {{ item.propertyname }} {{#  } }}</td>-->
                <td>{{# if(item.address == null){ }} {{#  } else { }} {{ item.address }} {{#  } }}</td>
            </tr>
            {{# }); }}
            </tbody>

        </table>
    </script>

</body>
<script type="text/javascript" src="js/lib/jquery-1.11.2.min.js"></script>
<script src="js/layui/layui.js"></script>
<!--#include file="common/version.html"-->
<script>
    layui.use(['jquery', 'dtable','jqform'], function(exports) {
        var $ = layui.jquery,
                list = layui.dtable,
                oneList = new list();
        oneList.init('list-tpl');
    });

    function refresh(name, ids){ console.log($('#'+ name)[0])
        $('#areaid').add($('#streetid')).add($('#propertyid')).val('');
        $('#'+ name).val(ids);
        $('#search').click();
        /*layui.use(['laytpl', 'dtable'], function(){
            $.post('/education/admin/enterprise', {'_query.propertyid': propertyid}, function(rs){
                if(rs.status == 200){
                    var $ = layui.jquery,
                            list = layui.dtable,
                            oneList = new list();
                    oneList.init('list-tpl', rs);
                }
            });
        });*/
    }


</script>

</html>